package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper      
public interface ypMapper {
		
	//查中药
	public JSONArray chazhongyao();
	
	//<!-- 根据中药名字模糊查询中药 -->
	public  JSONArray nameZhongyao(@Param("drug_name") String drug_name);
	
	
	//<!-- 根据西药名字模糊查询西药 -->
	public  JSONArray nameXiyao(@Param("drug_name") String drug_name);
	
	//查西药
	public JSONArray chaxiyao();
	
	//根据药id查询药品
	
	public JSONArray idyao(@Param("drug_id") Integer drug_id);
	
}